let v = new Vue({
    el:'#main-container',
    data:{
        meeting:{

        },
        userList:[

        ]
    },
    methods:{
        getDeptMember:function () {
            axios({
                url:'main/user/getUserByDeptId',
                data:this.meeting,
                method:'post',
            }).then(resp => {
                this.userList = resp.data.obj;
                console.log(this.userList);
            }).catch(error => {
                layer.msg(error.message);
            })
        },
        addMeeting:function () {
            axios({
                url:'main/meeting/addMeeting',
                data:this.meeting,
                method:'post',
            }).then(resp => {
                if(resp.data.success){
                    parent.layer.msg("发布成功");
                    let index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                }else{
                    layer.msg("发布失败");
                }
            }).catch(error => {
                layer.msg(error.message);
            })
        }
    },
    created:function () {

    }
})